package lq.common.entity;

import java.util.HashMap;

/**
 * @program: cloud-study
 * @description:
 * @author: LQ
 * @create: 2020-08-25 14:49
 */


public class StudyResponse extends HashMap<String, Object> {
    private static final long serialVersionUID = -8713837118340960775L;

    public StudyResponse message(String message) {
        this.put("message", message);
        return this;
    }

    public StudyResponse data(Object data) {
        this.put("data", data);
        return this;
    }

    @Override
    public StudyResponse put(String key, Object value) {
        super.put(key, value);
        return this;
    }

    public String getMessage() {
        return String.valueOf(get("message"));
    }

    public Object getData() {
        return get("data");
    }
}
